package com.mes.defece.controller;

import com.mes.common.pojo.MESResult;
import com.mes.defece.service.ProductionProcessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 侯伟豪
 * @Company 起点编程
 * @Description
 * @Time 2024/10/25 19:12
 */
@RestController
@CrossOrigin
@RequestMapping("/productionProcess")
public class ProductionProcessController {
    @Autowired
    private ProductionProcessService productionProcessService;
    @GetMapping("/selectById")
    public MESResult selectById(String productionProcessId) {
        return productionProcessService.selectById(productionProcessId);
    }
}